﻿import StorageTools from './StorageTools';
//用户登录数据
global.user = {
    loginState:'',//登录状态
    userData:'',//用户数据
	sessionId:'',
	accountCycle:''
}

global.server={
	url:'',
	wxPayUrl:''
}

global.styles={
	fontSize:37,
	TextInputHeigth:80
}

//刷新的时候重新获得用户数据
StorageTools.get('loginState').then((ret)=>{
	console.log(ret);
	global.user.loginState = true;
    global.user.userData = ret;
}).catch((err)=>{
	global.user.loginState = false;
    global.user.userData = '';
})
